{% extends "site_base.html" %}

{% block body %}
				<div id="page-container">
                        <!-- Lewa kolumna START -->
                            <!-- edycja zadania START -->
                            <div class="box-shadow">
                                <div class="box">
                                    <div class="box-header">
                                        <span class="box-header-title">
                                            <img class="box-header-pointer" alt="pointer" src="{{ MEDIA_URL }}css/gfx/icons/point-transparent.png" />
                                            <span>Edycja zadania {{ zad }}</span>
                                        </span>
                                    </div>
                                    <div class="box-content">
											<form action="." method="post">
												<fieldset>
												{{ form.as_p }}
												<br />
												<span class="button-border">
													<input type="submit" value="zapisz >>" />
												</span>
												<span class="button-border buttons"><span class="button"><a href="{% url projekty_zadanie id=zad.id %}">anuluj</a></span></span>
												</fieldset>
											</form>
                                    </div>
                                </div>
                            </div>
							<!-- edycja zadania KONIEC -->
						<!-- Lewa kolumna KONIEC -->
				</div>
				<div id="page-container-2">
                        <!-- Prawa kolumna START -->
                            <!-- Opis projektu -->
                            <div class="box-shadow">
                                <div class="box">
                                    <div class="box-header">
                                        <span class="box-header-title">
                                            <img class="box-header-pointer" alt="pointer" src="{{ MEDIA_URL }}css/gfx/icons/point-transparent.png" />
                                            <span>Opis projektu</span>
                                        </span>
                                    </div>
                                    <div class="box-content">
                                        <p>
                                            {{ zad.projekt.opis }}
                                        </p>
                                    </div>
                                </div>
                            </div>
                            <!-- Opis projektu KONIEC -->
                            <!-- Członkowie -->
                            <div class="box-shadow">
                                <div class="box">
                                    <div class="box-header">
                                        <span class="box-header-title">
                                            <img class="box-header-pointer" alt="pointer" src="{{ MEDIA_URL }}css/gfx/icons/point-transparent.png" />
                                            <span>Członkowie ({{ zad.projekt.czlonkowie.all.count }})</span>
                                        </span>
                                    </div>
                                    <div class="box-content">
										{% for c in zad.projekt.czlonkowie.all %}
                                        <p class="line">
                                            <span class="foto-small">
                                                <img alt="foto" src="{{ MEDIA_URL }}{{ c.zdjecieNieOficjalne|default:"css/gfx/icons/no-foto-small.gif" }}" />
                                            </span>	
                                            <span class="content">
                                                <strong>{{ c }}</strong><br />
                                                <span class="color-gray">{{ c.sekcja.all.0 }}{% for adm in zad.projekt.admins.all %}{% ifequal c.id adm.id %} \ Project Manager{% endifequal %}{% endfor %}</span>
                                            </span>
                                            <span class="icons">
                                                <a href="#"><img class="icon-show" alt="show" src="{{ MEDIA_URL }}css/gfx/icons/show-white.gif" /></a>
                                            </span>
                                        </p>
                                        {% if not forloop.last %}<hr />{% endif %}
										{% endfor %}
                                    </div>
                                </div>
                            </div>
                            <!-- Członkowie KONIEC -->
					</div>
					<!-- Lewa kolumna KONIEC -->
			</div>
    
{% endblock %}